export class UIUtil {
    //将节点移动到目标节点
    public static move(this: UIUtil, node: cc.Node, targetParent: cc.Node, cleanup: boolean) {
        let wp = node.convertToWorldSpaceAR(cc.v3(0, 0, 0));//世界坐标
        let pp = targetParent.convertToNodeSpaceAR(wp);//相对目标父节点位置
        node.removeFromParent(cleanup);
        node.position = pp;

        targetParent.addChild(node)
        return this;
    }
    public static log(this: UIUtil) {
        console.log('UIUtil:log');
        return this;
    }
}